package com.tbit.uqbike.webmanager.dao.core;

import com.tbit.uqbike.object.pojo.StudentAuthApply;
import com.tbit.uqbike.object.pojo.dto.BatchRegisterAuthDTO;
import com.tbit.uqbike.object.pojo.dto.StudentAuthApplyDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author chenmengran
 * @Description: 学生认证
 * @date 2020\1\6 000610:23
 */
public interface StudentAuthApplyDao {

    /**
     * 根据主建获取
     *
     * @param applyId
     * @return
     */
    StudentAuthApply getById(Integer applyId);

    /**
     * 获取学生认证列表
     *
     * @param params
     * @return
     */
    List<StudentAuthApply> getByAccountId(Map<String, Object> params);

    /**
     * 获取总数
     *
     * @param params
     * @return
     */
    Integer getTotal(Map<String, Object> params);

    /**
     * 更新意见
     */
    void updateApply(Map<String, Object> params);

    void deleteByUserId(@Param("userId") Integer userId);

    void batchInsertUpdate(List<BatchRegisterAuthDTO> list);
    /**
     * 根据用户id获取认证详情
     *
     * @param userId 用户id
     * @return 认证详情
     */
    StudentAuthApply getStudentApplyById(Integer userId);


    /**
     * 获取学生认证列表
     *
     * @param params
     * @return
     */
    List<StudentAuthApplyDTO> queryPageV2(Map<String, Object> params);
}
